//
//  LSBookStore.m
//  LibraryStorm
//
//  Created by Enel@Lightning on 4/28/14.
//  Copyright (c) 2014 3ATeam. All rights reserved.
//

#import "LSBookStore.h"
#import "LSCoreDataController.h"

@interface LSBookStore ()

@property (nonatomic, strong) NSManagedObjectContext *managedObjectContext;
@end

@implementation LSBookStore

+ (LSBookStore *)sharedStore
{
    static dispatch_once_t once;
    static LSBookStore *sharedStore;
    dispatch_once(&once, ^{
        sharedStore = [[self alloc] init];
    });
    
    return sharedStore;
}

- (id)init
{
    self = [super init];
    if (self) {
        self.managedObjectContext = [[LSCoreDataController sharedInstance] newManagedObjectContext];
    }
    
    return self;
}
@end
